package project.model;

import java.util.Observable;

public class Hero extends Observable {
    private String name;
    private ARoom vitriHienTai;
    private int iWantToGo;
    
    public Hero(String name) {
        this.setName(name);
    }
    
    public Hero(String name, ARoom room) {
        this.setName(name);
        this.setVitriHienTai(room);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ARoom getVitriHienTai() {
        return vitriHienTai;
    }

    public void setVitriHienTai(ARoom vitriHienTai) {
        this.vitriHienTai = vitriHienTai;
    }

    public int getHuongMongMuonDiDen() {
        return iWantToGo;
    }

    public void goTo(int iWantToGo) {
        this.iWantToGo = iWantToGo;
        setChanged();
        notifyObservers();
    }
}
